package com.gaoxk.cxf.service.dao;

import com.gaoxk.cxf.service.mapper.TServerendpoint;
import com.gaoxk.datasource.DataSource;
import com.gaoxk.datasource.DataSourceType;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

//@Mapper
@Repository
@DataSource(value = DataSourceType.MASTER)
@Scope(value = "prototype")
//@DS(DataSourceType.MASTER)
public interface TServerendpointDao {
    int deleteByPrimaryKey(Long id);

    int insert(TServerendpoint record);

    int insertSelective(TServerendpoint record);

    TServerendpoint selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TServerendpoint record);

    int updateByPrimaryKey(TServerendpoint record);

    List<Map<String, Object>> selectAllSxServer();
}